package com.zhongfl.crm.lixiao.mapper;

import com.zhongfl.crm.model.boss.LxOrder;
import com.zhongfl.crm.model.boss.Order;
import com.zhongfl.crm.model.boss.OrderTaskLog;

import java.util.List;

/**
 * @author wang.yuchuan
 * @date 2018/6/25
 */
public interface BossOrderMapper {

    /**
     * 根据客户姓名查询订单
     *
     * @param loanUserName
     * @return
     */
    Order selectByLoanUserName(String loanUserName);

    /**
     * 根据借款人姓名获取订单
     *
     * @param loanUserName
     * @return
     */
    List<Order> selectByLoanUser(String loanUserName);

    /**
     * 根据订单号查询
     *
     * @param orderNo
     * @return
     */
    Order selectByOrderNo(String orderNo);

    /**
     * 更新励销部分字段
     *
     * @param order
     */
    void updateByOrderNoSelective(Order order);

    List<Order> selectByPage();

    void updateCustomerOrderNoAndLxDeliverOrderId(Order order);


    //以下方法是2018-09-16上线后修复数据的临时方法

    List<LxOrder> fixLxOrder();

    void cancelOrder(String orderNo);

    void addCancelOrderLog(String orderNo);

    List<Order> selectFixOrders();

    void insertTaskLog(OrderTaskLog orderTaskLog);
}
